/**
 * All rights reserved. This material is confidential and proprietary to 7ROAD SQ team.
 */
package com.road.entity.lottery;

import java.sql.Timestamp;

import com.road.entity.base.DataObject;
import com.road.entity.base.Option;


public class LotteryInfo extends DataObject {
	private int id; // 序号;
	private int userId; // 用户ID;
	private int payedPoint; // 已消费钻石;
	private int totalCount; // 总共可抽奖次数;
	private int usedCount; // 已抽奖次数;
	private int addedCount; // 今天已增加次数;
	private Timestamp resetDate; // 重置当天增加次数的时间;
	private int property1; // 扩展1;
	private String property2; // 扩展2;

	/**
	 * <pre>
	 * 序号
	 * </pre>
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * <pre>
	 * 序号
	 * </pre>
	 */
	public int getId() {
		return this.id;
	}

	/**
	 * <pre>
	 * 用户ID
	 * </pre>
	 */
	public void setUserId(int userId) {
		this.userId = userId;
	}

	/**
	 * <pre>
	 * 用户ID
	 * </pre>
	 */
	public int getUserId() {
		return this.userId;
	}

	/**
	 * <pre>
	 * 已消费钻石
	 * </pre>
	 */
	public void setPayedPoint(int payedPoint) {
		if (this.payedPoint != payedPoint) {
			this.payedPoint = payedPoint;
			setOp(Option.Update);
		}
	}

	/**
	 * <pre>
	 * 已消费钻石
	 * </pre>
	 */
	public int getPayedPoint() {
		return this.payedPoint;
	}

	/**
	 * <pre>
	 * 总共可抽奖次数
	 * </pre>
	 */
	public void setTotalCount(int totalCount) {
		if (this.totalCount != totalCount) {
			this.totalCount = totalCount;
			setOp(Option.Update);
		}
	}

	/**
	 * <pre>
	 * 总共可抽奖次数
	 * </pre>
	 */
	public int getTotalCount() {
		return this.totalCount;
	}

	/**
	 * <pre>
	 * 已抽奖次数
	 * </pre>
	 */
	public void setUsedCount(int usedCount) {
		if (this.usedCount != usedCount) {
			this.usedCount = usedCount;
			setOp(Option.Update);
		}
	}

	/**
	 * <pre>
	 * 已抽奖次数
	 * </pre>
	 */
	public int getUsedCount() {
		return this.usedCount;
	}

	/**
	 * <pre>
	 * 今天已增加次数
	 * </pre>
	 */
	public void setAddedCount(int addedCount) {
		if (this.addedCount != addedCount) {
			this.addedCount = addedCount;
			setOp(Option.Update);
		}
	}

	/**
	 * <pre>
	 * 今天已增加次数
	 * </pre>
	 */
	public int getAddedCount() {
		return this.addedCount;
	}

	/**
	 * <pre>
	 * 重置当天增加次数的时间
	 * </pre>
	 */
	public void setResetDate(Timestamp resetDate) {
		if (this.resetDate == null || !this.resetDate.equals(resetDate)) {
			this.resetDate = resetDate;
			setOp(Option.Update);
		}
	}

	/**
	 * <pre>
	 * 重置当天增加次数的时间
	 * </pre>
	 */
	public Timestamp getResetDate() {
		return this.resetDate;
	}

	/**
	 * <pre>
	 * 扩展1
	 * </pre>
	 */
	public void setProperty1(int property1) {
		if (this.property1 != property1) {
			this.property1 = property1;
			setOp(Option.Update);
		}
	}

	/**
	 * <pre>
	 * 扩展1
	 * </pre>
	 */
	public int getProperty1() {
		return this.property1;
	}

	/**
	 * <pre>
	 * 扩展2
	 * </pre>
	 */
	public void setProperty2(String property2) {
		if (this.property2 == null || !this.property2.equals(property2)) {
			this.property2 = property2;
			setOp(Option.Update);
		}
	}

	/**
	 * <pre>
	 * 扩展2
	 * </pre>
	 */
	public String getProperty2() {
		return this.property2;
	}

	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("id:		").append(id).append("\n");
		sb.append("userId:		").append(userId).append("\n");
		sb.append("payedPoint:		").append(payedPoint).append("\n");
		sb.append("totalCount:		").append(totalCount).append("\n");
		sb.append("usedCount:		").append(usedCount).append("\n");
		sb.append("addedCount:		").append(addedCount).append("\n");
		sb.append("resetDate:		").append(resetDate).append("\n");
		sb.append("property1:		").append(property1).append("\n");
		sb.append("property2:		").append(property2).append("\n");
		return sb.toString();
	}
}